<template>
	<view>
		<searchView></searchView>
		<view class="container">
			<view class="content-item">
				<view class="left-image">
					<image src="../../../static/img/pagesNew/es.png" mode=""></image>
					<text class="machineStatus">运行中</text>
				</view>
				<view class="right-content">
					<view class="item-name">
						超级路由器
					</view>
					<view class="item-info">
						<text>13612341234</text>
						<text class="separate">|</text>
						<text>会员ID： 088</text>
					</view>
					<view class="item-price">
						<text class="symbol">￥</text>
						<text>1500</text>
					</view>
					<view class="item-disposition">
						<text>总数</text>
						<text class="count">1台</text>
						<text>剩余999天</text>
					</view>
				</view>
			</view>
		</view>

		<view class="tabbar">
			<view class="tabbarCenter">
				<view class="item">
					<image src="../../../static/img/pagesNew/index_a.png" mode=""></image>
					<view class="text active">
						设备
					</view>
				</view>
				<view class="item">
					<image src="../../../static/img/pagesNew/mine.png" mode=""></image>
					<view class="text">
						我的
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import searchView from "../components/search.vue"
	export default {
		data() {
			return {

			};
		},
		components: {
			searchView
		}
	}
</script>

<style lang="less" scoped>
	page,
	html {
		background-color: #F1F3F5;
		font-family: 'Regular', sans-serif;
	}

	.container {
		width: 676rpx;
		margin: auto;

		.content-item {
			margin-top: 50rpx;
			display: flex;
			justify-content: space-between;

			.left-image {
				position: relative;
				width: 195rpx;
				height: 195rpx;
				border-radius: 10rpx;
				overflow: hidden;

				image {
					width: 100%;
					height: 100%;
				}

				.machineStatus {
					position: absolute;
					font-size: 10rpx;
					transform: scale(0.7);
					color: #F1F3F5;
					right: 0%;
					top: 0%;
				}
			}

			.right-content {
				width: calc(676rpx - 195rpx - 32rpx);
				text-align: left;
				display: flex;
				flex-direction: column;
				justify-content: space-between;

				.item-name {
					font-size: 40rpx;
					margin-top: -12.5rpx;
				}

				.item-info {
					font-family: 'Normal' !important;
					color: #0086EF;
					font-size: 28rpx;
					margin-top: -2.5rpx;

					.separate {
						padding: 0 8rpx;
					}
				}

				.item-price {
					margin-left: -7rpx;
					margin-top: -10rpx;
					font-size: 48rpx;
					color: #FF0000;

					.symbol {
						font-size: 40rpx;
					}
				}

				.item-disposition {
					height: 46rpx;
					width: 375rpx;
					font-weight: 100;
					margin-top: 2rpx;

					text {
						background-color: #0086EF;
						color: #fff;
						padding: 10rpx 18rpx;
					}

					text:last-child {
						padding: 10rpx 22rpx;
					}

					.count {
						color: #000;
						padding: 6rpx 26rpx;
						background-color: #fff;
						border: 4rpx solid #0086EF;
					}
				}
			}
		}
	}

	.tabbar {
		width: 100%;
		height: 120rpx;
		background-color: #fff;
		position: fixed;
		bottom: 0%;
		display: flex;
		align-items: center;
		justify-content: center;

		.tabbarCenter {
			width: 93%;
			margin: auto;
			display: flex;
			align-items: center;
			justify-content: space-around;

			.item {
				display: flex;
				justify-content: center;
				align-items: center;
				flex-direction: column;
				font-size: 28rpx;

				image {
					width: 53rpx;
					height: 53rpx;
				}

				.text {
					padding-top: 5rpx;
					color: #CFD2D9;
				}

				.active {
					color: #0086EF;
				}
			}
		}
	}
</style>